package itheima_1;

import java.io.IOException;
import java.net.*;
import java.util.Scanner;

public class ClienDemo {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds=new DatagramSocket();
        Scanner sc=new Scanner(System.in);
        String s=sc.nextLine();
        while (true) {
            if("886".equals(s)){
                break;
            }
            byte []bytes=s.getBytes();
            InetAddress address = InetAddress.getByName("127.0.0.1");
            int port=10000;
            DatagramPacket dp=new DatagramPacket(bytes,bytes.length,address,port);
            ds.send(dp);
        }
        ds.close();
    }
}